Skip to main content

ticks

Type

function

Summary

Returns the number of ticks since the start of the eon.

Syntax

the ticks
ticks()

Description

Use the ticks function to time events that must be checked more often than once per second.

Unlike HyperTalk's "ticks" function, the ticks function returns the total number of ticks since midnight GMT, January 1, 1970, rather than the total number of ticks since the last system startup.

A tick is one-sixtieth of a second. If you don't need to time events with this much precision, use the seconds function. If you need to time events with greater precision, use the milliseconds function.

Examples

the ticks
put the ticks - startTicks into elapsedTicks

command: wait

control structure: function

function: time, milliseconds, date, ticks

glossary: precision, eon, return, event

keyword: ticks, integer

property: idleTicks

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?